package com.bw.service;

import com.bw.domain.Role;
import com.bw.domain.TbMenu;
import com.bw.domain.User;

import java.util.List;

/**
 * @Author: TaoShiHao
 * @Date: 2025/3/12 15:15
 * @Description:
 **/
public interface UserService {
    User login(String username);

    List<Role> listRoleByUserId(Integer id);

    List<TbMenu> listMenuByUserId(Integer id);

    List<User> list(User user);

    List<Role> listRole();

    int checkName(String username);

    boolean add(User user);
}
